<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>人事管理</title>
<style>
body {
	background-image: url('${pageContext.request.contextPath }/images/b.gif');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-attachment: fixed;
}
</style>
<style>
button {
	width: 425px; /*设置按钮宽度*/
	color: white; /*字体颜色*/
	background-color: #004B97; /*按钮背景颜色*/
	border-radius: 3px; /*让按钮变得圆滑一点*/
	border-width: 0; /*消去按钮丑的边框*/
	margin: 0;
	outline: none; /*取消轮廓*/
	font-family: KaiTi; /*字体设置为楷体*/
	font-size: 20px; /*设置字体大小*/
	text-align: center; /*字体居中*/
	cursor: pointer; /*设置鼠标箭头手势*/
}

button:hover { /*鼠标移动时的颜色变化*/
	background-color: green;
	width: 425px; /*设置按钮宽度*/
	 /*设置按钮高度*/
}
</style>
<style>
#left {
	width: 43%;
	float: left;
	text-align: right
}
#right {
	width: 43%;
	float: right;
}
</style>
<style>
a:link {text-decoration:none;}    /* 未被访问的链接 */
a:visited {text-decoration:none;} /* 已被访问的链接 */
a:hover {text-decoration:underline;}   /* 鼠标指针移动到链接上 */
a:active {text-decoration:underline;}  /* 正在被点击的链接 */
</style>
<style>
h1{
text-align:center;
}
</style>

<style>
aaa{
width:10px;
top:200px;
left:500px;
display:block;
margin:2;
}
</style>
<style>
table{
text-align:center;
width:800px;
border-width:6px;
border-style:solid;
color:black;
}
td{
width:150px;
border-width:3px;
border-style:solid;
}
</style>
</head>

<h1 >商品管理   </h1> 

<body>
<div class="aaa">
<a href="../index.jsp" >首页</a>
</div>
<div class="project" align="center">
<form:form modelAttribute="commodity"  method="post" action=" ${pageContext.request.contextPath }/commodity/update">
    <fieldset>
        <legend>修改商品记录</legend>
        <form:hidden path="Commodity_Id"/>
        <p>
            <label>商品名字</label>
            <form:input path="Commodity_Name"/>
        <p>
            <label>库存</label>
            <form:input path="Commodity_Stock"/>
        </p>
        <p>
            <label>价格</label>
            <form:input path="Commodity_Price"/>
        </p>
        <p>
            <label>类别</label>
            <form:input path="Commodity_Type"/>
        </p>
        <p id="buttons">
            <input id="reset" type="reset"/>
            <input id="submit" type="submit" value="修改" />
        </p>
    </fieldset>
</form:form>
</div>
</body>
</html>